ga.view.streaming.showroom
Class ShowRoomFactory

java.lang.Object
  extended by ga.view.streaming.showroom.ShowRoomFactory

public class ShowRoomFactory
extends java.lang.Object

A factory for creating ShowRoom objects.

Since:
12.08.2012
Author:
Stephan Dreyer

Field Summary
private  com.jme3.asset.AssetManager assetManager
           
private  com.jme3.system.AppSettings settings
           
private  ShowRoomSettings showRoomSettings
           
private  ShowRoom template
           
 
Constructor Summary
ShowRoomFactory(com.jme3.asset.AssetManager assetManager, com.jme3.system.AppSettings settings, ShowRoomSettings showRoomSettings)
          Instantiates a new show room factory.
 
Method Summary
 ShowRoom createShowRoom()
          Creates a new ShowRoom object by cloning the template.
 ShowRoom createShowRoom(boolean initNew)
          Creates a new ShowRoom object.
private  void initShowRoom()
          Inits the show room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assetManager

private final com.jme3.asset.AssetManager assetManager

settings

private final com.jme3.system.AppSettings settings

showRoomSettings

private final ShowRoomSettings showRoomSettings

template

private ShowRoom template
Constructor Detail

ShowRoomFactory

public ShowRoomFactory(com.jme3.asset.AssetManager assetManager,
                       com.jme3.system.AppSettings settings,
                       ShowRoomSettings showRoomSettings)
Instantiates a new show room factory.

Parameters:
assetManager - the asset manager
settings - the settings
showRoomSettings - the show room settings
Since:
12.08.2012
Method Detail

initShowRoom

private void initShowRoom()
Inits the show room.

Since:
12.08.2012

createShowRoom

public ShowRoom createShowRoom()
Creates a new ShowRoom object by cloning the template.

Returns:
the show room
Since:
12.08.2012

createShowRoom

public ShowRoom createShowRoom(boolean initNew)
Creates a new ShowRoom object.

Parameters:
initNew - init new or clone the template
Returns:
the show room
Since:
12.08.2012